<table>
  <tr>
    <th>订单号</th>
    <th>订单状态</th>
    <th>订单总额</th>
  </tr>

<% for order in @orders %>
  <tr>
    <td><%=h order.id %></td>
    <td><%=h order.status %></td>
    <td><%=h order.order_price_sum %></td>
    <td><%= link_to '查看',{:controller=>"orders",:action=>"show",:id=>order.id} %></td>
  </tr>
<% end %>
</table>
<%= will_paginate @orders,:prev_label=>"上一页",:next_label=>"下一页" %>
